const $host = 'http://47.94.219.0:8080'//服务器端口
//const $host = 'http://192.168.1.171:8080'//服务器端口
const ERR_OK = 200                      //接口请求成功status
const CUSTOM_ERR_OK = 900000            //数据请求成功自定义status


//获取url get 参数
function GetQueryString(name)
{
    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if(r!=null)return  unescape(r[2]); return null;
}